package com.pan.kang.core;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class PostProcessTask {

    private String id;

    /**
     * 执行顺序
     */
    private Integer idxNo;

    private String methodName;

    private String executorId;

    /**
     * 执行状态
     */
    private Integer status;

    private PostProcessExecutor postProcessExecutor;

    private Object result;

    private Object param;

    /**
     * 同步异步
     */
    private boolean async;

    public void execute() {
        this.getPostProcessExecutor().doExecute(this);
    }
}
